var url=require('url')

function Router() {
   this.routers=[];
   this.get=function(path,request,response,callback){
       this.routers.push({
           callback:function () {
               var urlObj=url.parse(request.url,true);
               if (urlObj.pathname==path){
                   callback(request,response);
               }
           }
       })
    };
   this.routerLink=function(request,response){
       for (var index in this.routers){
          this.routers[index].callback(request,response);
       }
    }
}


